// import { request } from 'umi';
import request from '@/utils/request';

export interface paramsType {
  location: string;
}

export const getSwaggerApiResources = async (key: string) => {
  return request('/swagger-resources');
}

export const getSwaggerApiDetails = async (url: string) => {
  return request(url);
}

export async function queryMarkdown(apiKey:string) {
  if (apiKey == undefined || apiKey == '') {
    apiKey = 'DXAP_ANTW_DOC';
  }
  return request('/dxap/antw/queryMarkdown/' + apiKey, {
    method: 'post'
  });
}
export const getSpecialApiInfo = async (value: string) => {
  return request('/dxap/antw/getSwaggerApiResources/' + value,{
    method:'post'
  });
}
